------------------------------------------------------------------------------------------------------------------------------------
--[[

    

]]--
------------------------------------------------------------------------------------------------------------------------------------



AddComponentPostInit("weapon", function(self)


    local old_GetDamage = self.GetDamage
    self.GetDamage = function(self,attacker,target,...)
        --- 做今后可能拓展的自适应兼容
        local origin_rets = {old_GetDamage(self,attacker,target,...)}
        local damage = origin_rets[1]
        local spdamage = origin_rets[2]
        -- local old_damage = damage
        if attacker and attacker.components.hutao_com_weapon_get_damage_replace then
            damage, spdamage = attacker.components.hutao_com_weapon_get_damage_replace:ReplaceParam(self.inst,attacker,target,damage,spdamage)
        end
        origin_rets[1] = damage
        origin_rets[2] = spdamage
        -- print("damage replace",old_damage,damage)
        return unpack(origin_rets)
    end

end)